﻿import 'package:get/get.dart';
import 'setup/menstrual_cycle_setup_welcome_view.dart';
import 'setup/menstrual_cycle_setup_view.dart';
import 'setup/menstrual_cycle_setup_logic.dart';
import 'calendar/menstrual_cycle_calendar_view.dart';
import 'calendar/menstrual_cycle_calendar_logic.dart';
import 'notification/menstrual_cycle_notification_view.dart';
import 'notification/menstrual_cycle_notification_logic.dart';

/// 生理周期模块路由配置
class MenstrualCycleRoutes {
  /// 生理周期设置欢迎页
  static const String setupWelcome = '/menstrual-cycle/setup-welcome';

  /// 生理周期设置页
  static const String setup = '/menstrual-cycle/setup';

  /// 生理周期日历页
  static const String calendar = '/menstrual-cycle/calendar';

  /// 生理期提醒设置页
  static const String notification = '/menstrual-cycle/notification';

  static final List<GetPage> routes = [
    GetPage(
      name: setupWelcome,
      page: () => const MenstrualCycleSetupWelcomeView(),
    ),
    GetPage(
      name: setup,
      page: () => const MenstrualCycleSetupView(),
      binding: BindingsBuilder(() {
        Get.put(MenstrualCycleSetupLogic());
      }),
    ),
    GetPage(
      name: calendar,
      page: () => const MenstrualCycleCalendarView(),
      binding: BindingsBuilder(() {
        Get.put(MenstrualCycleCalendarLogic());
      }),
    ),
    GetPage(
      name: notification,
      page: () => const MenstrualCycleNotificationView(),
      binding: BindingsBuilder(() {
        Get.put(MenstrualCycleNotificationLogic());
      }),
    ),
  ];
}
